package string.leetcode.easy;

/**
 * @author bruin_du
 * @description 左旋转字符串
 * @date 2022/5/17 15:19
 **/
public class Offer58II_ReverseLeftWords {
    public String reverseLeftWords(String s, int n) {
        n = n % s.length();
        String str1 = s.substring(0,n);
        String str2 = s.substring(n,s.length());
        return str2 + str1;
    }
}
